package com.yj.cmp.sdk.fusioncompute.network.securitygroup.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class SecurityGroupRulesListVo {

    @JsonProperty("securityGroupRules")
    private List<SecurityGroupRulesDTO> securityGroupRules;
    @JsonProperty("total")
    private Long total;

    @NoArgsConstructor
    @Data
    public static class SecurityGroupRulesDTO {
        @JsonProperty("direction")
        private Integer direction;
        @JsonProperty("fromPort")
        private Integer fromPort;
        @JsonProperty("ipProtocol")
        private String ipProtocol;
        @JsonProperty("ipRanges")
        private String ipRanges;
        @JsonProperty("ipVersion")
        private Integer ipVersion;
        @JsonProperty("rulesId")
        private Long rulesId;
        @JsonProperty("securityGroupId")
        private Long securityGroupId;
        @JsonProperty("toPort")
        private Integer toPort;
    }
}
